<template>
  <ul class="footer">
    <li @click="toIndex">
      <i class="fa fa-home"></i>
      <p>首页</p>
    </li>
    <li @click="toAI">
      <i class="fa fa-compass"></i>
      <p>Elio</p>
    </li>
    <li @click="toOrderList">
      <i class="fa fa-file-text-o"></i>
      <p>订单</p>
    </li>
    <li @click="toMy">
      <i class="fa fa-user-o"></i>
      <p>我的</p>
    </li>
  </ul>
</template>

<script>
export default {
  name: 'Footer',
  methods: {
    toIndex() {
      this.$router.push({
        path: '/index'
      });
    },

    toMy() {
      this.$router.push({
        path: '/my'
      });
    },

	toLogin() {
	  this.$router.push({
	    path: '/login'
	  });
	},
    toOrderList() {
      this.$router.push({
        path: '/orderList'
      });
    },
    toAI(){
      this.$router.push({
        path: '/ai'
      });
    }
  }
}
</script>

<style>
.wrapper .footer {
  width: 100%;
  height: 14vw;
  border-top: solid 1px #DDD;
  background:linear-gradient(#F37373,#F08080,#EF9292);
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.wrapper .footer li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  user-select: none;
  cursor: pointer;
}

.wrapper .fooder li p {
  font-size: 2.8vw;
}

.wrapper .fooder li i {
  font-size: 5vw;
}
</style>
